package YunNotes.allnotes.model;

import java.util.Date;

/**
 * @author 10593
 */
public class NotesUserPublic {
    //代表每篇笔记（每篇笔记对应一个num,唯一，自动排序，需要加主键）

    private int num;

    //用户的昵称

    private String userName;

    //笔记的标题

    private String headLine;

    //笔记内容

    private String content;

    //点赞数

    private int praisePoints;

    //浏览量

    private int pageView;

    //笔记的时间

    private Date createTime;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadLine() {
        return headLine;
    }

    public void setHeadLine(String headLine) {
        this.headLine = headLine;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getPraisePoints() {
        return praisePoints;
    }

    public void setPraisePoints(int praisePoints) {
        this.praisePoints = praisePoints;
    }

    public int getPageView() {
        return pageView;
    }

    public void setPageView(int pageView) {
        this.pageView = pageView;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "NotesUserPublic{" +
                "num=" + num +
                ", userName='" + userName + '\'' +
                ", headLine='" + headLine + '\'' +
                ", content='" + content + '\'' +
                ", praisePoints=" + praisePoints +
                ", pageView=" + pageView +
                ", createTime=" + createTime +
                '}';
    }
}
